package com.yycx.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yycx.common.mybatis.annotation.TableAlias;
import com.yycx.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 押金管理
 *
 * @author flyme
 * @date 2023-07-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_deposit")
@TableAlias("deposit")
@ApiModel(value = "BusDeposit对象", description = "押金管理")
public class BusDeposit extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "depositId", type = IdType.ASSIGN_ID)
    private Long depositId;

    /**
     * 流程实例ID
     */
    private String processInstanceId;

    @ApiModelProperty(value = "单号")
    private String depositNo;

    @ApiModelProperty(value = "单位ID")
    private Long customId;

    @ApiModelProperty(value = "部门ID")
    private Long deptId;

    @ApiModelProperty(value = "业务员ID")
    private Long saleManId;

    @ApiModelProperty(value = "账套ID")
    private Long companyId;

    @ApiModelProperty(value = "机构ID")
    private Long organizationId;

    @ApiModelProperty(value = "收款金额")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "收款日期")
    private Date payDate;

    @ApiModelProperty(value = "付款账户")
    private String payBankNo;

    @ApiModelProperty(value = "付款银行")
    private String payBankName;

    @ApiModelProperty(value = "审批状态(0:未认款 1:已认款 2:已退款)")
    private Integer depositState;

    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundAmount;

    @ApiModelProperty(value = "扣款金额")
    private BigDecimal deductAmount;

    @ApiModelProperty(value = "退款日期")
    private String refundDate;

    @ApiModelProperty(value = "退款ID")
    private String refundId;

    @ApiModelProperty(value = "认款ID")
    private Long rkId;

    @ApiModelProperty(value = "收款银行")
    private Long bankId;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "退款备注")
    private String refundRemark;


}
